package net.kosev.su.tetris.tetrominoes;

import net.kosev.su.tetris.game.Type;

/*
 * 		X X X
 * 		X
 */
public class OrangeTetromino extends AbstractTetromino {

	public OrangeTetromino() {
		super();
		
		type = Type.ORANGE;
		
		blocks[0].x = 0;
		blocks[0].y = 0;
		blocks[1].x = 1;
		blocks[1].y = 0;
		blocks[2].x = 2;
		blocks[2].y = 0;
		blocks[3].x = 0;
		blocks[3].y = 1;
	}

	public void rotate(boolean forward) {
		genericRotate(blocks[1].x, blocks[1].y, forward);
	}

	public int getWidth() {
		return 3;
	}

}
